package com.rjpacket.supernews.app.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.rjpacket.supernews.app.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class PublishFragment extends Fragment implements View.OnClickListener {


    private View view;

    public PublishFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View ret = inflater.inflate(R.layout.fragment_publish, container, false);

        view = ret.findViewById(R.id.platform);
        view.setOnClickListener(this);

        return ret;
    }


    @Override
    public void onClick(View v) {
        int id = v.getId();
        switch (id) {
            case R.id.platform:
                //
                view.setVisibility(View.INVISIBLE);
                break;
        }
    }
}
